package com.example;

import com.example.fruit.Fruit;
import com.example.strategy.Strategy;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
public class Supermarket {
    private List<Fruit> fruitList;
    private Strategy strategy;
    private List<Discount> discountList;
    public BigDecimal getMoney(){
        return strategy.getMoney(fruitList,discountList);
    }


}
